import axios from "axios";
//查询所有仓库信息
export const getWarehouseList =() =>{
 return axios.get("http://localhost:8080/api/warehouse/findAll",{})
}
//根据库区查询储位
export const getPositionList = item =>{
 return axios.get("http://localhost:8080/api/position/findListByWarehouseAreaId/"+item,{})
}
//查询根据仓库查询库区
export const getWarehouseArea = item=>{
 return axios.get("http://localhost:8080/api/warehouseArea/findListByWarehouseId/"+item,{})
}
//获取所有商品信息
export const getGoodsByPosition = (positionId,page,size)=>{
 return axios.get('http://localhost:8080/api/goods/findByPositionId',{
  positionId,
  page,
  size
 })
}
//根据条件获取商品信息
export const getGoodsByCondition =(goodsEntity,page,size)=>{
 return axios.post('http://localhost:8080/api/goods/findByCondition/'+page+'/'+size,{goodsEntity})
}